package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 小程序配置对象 sys_miniprogram
 * 
 * @author ruoyi
 * @date 2024-01-01
 */
public class SysMiniprogram extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 小程序ID */
    private Long miniprogramId;

    /** 小程序名称 */
    @Excel(name = "小程序名称")
    private String miniprogramName;

    /** 小程序AppId */
    @Excel(name = "小程序AppId")
    private String appId;

    /** 小程序AppSecret */
    @Excel(name = "小程序AppSecret")
    private String appSecret;

    /** 小程序描述 */
    @Excel(name = "小程序描述")
    private String description;

    /** 状态（0正常 1停用） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    public void setMiniprogramId(Long miniprogramId) 
    {
        this.miniprogramId = miniprogramId;
    }

    public Long getMiniprogramId() 
    {
        return miniprogramId;
    }
    public void setMiniprogramName(String miniprogramName) 
    {
        this.miniprogramName = miniprogramName;
    }

    public String getMiniprogramName() 
    {
        return miniprogramName;
    }
    public void setAppId(String appId) 
    {
        this.appId = appId;
    }

    public String getAppId() 
    {
        return appId;
    }
    public void setAppSecret(String appSecret) 
    {
        this.appSecret = appSecret;
    }

    public String getAppSecret() 
    {
        return appSecret;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setCreateTime(Date createTime) 
    {
        this.createTime = createTime;
    }

    public Date getCreateTime() 
    {
        return createTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("miniprogramId", getMiniprogramId())
            .append("miniprogramName", getMiniprogramName())
            .append("appId", getAppId())
            .append("appSecret", getAppSecret())
            .append("description", getDescription())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .append("remark", getRemark())
            .toString();
    }
}
